package com.znsd.exam.service;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.znsd.entitys.Subjectinfo;

public interface SubjectService {
	public List<Subjectinfo> getSubjects(Map<String, Object> map);
	public int getSubjectTotal();
	public int addSucjects(Subjectinfo subject);
	public int delSubject(Integer subjectId);
	public Subjectinfo getSubjectWithId(Integer subjectId);
	public int updateSubject(Subjectinfo subject);
	//根据课程ID获取题目
	public List<Subjectinfo> kcSubList(Integer id,Integer page,Integer rows);
	//根据课程ID获取题目的数量
	public long kcSubCount(Integer id);
	//根据试题ID获取一些字段
	public List<Subjectinfo> ctList(Integer id);
}
